package com.apes.fa.service;


import com.apes.fa.model.FaAssetsTransferOutItem;
import com.apes.fa.respository.FaAssetsTransferOutItemRepository;
import com.apes.framework.api.DomainService;
import com.apes.framework.plugin.esb.api.SimpleRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: apes-server
 * @BelongsPackage: com.apes.fa.service
 * @ClassName: FaAssetsTransferOutItemService
 * @Author: PengZiFeng
 * @Description: 资产转出明细(账套内)
 * @CreateTime: 2021-09-01 16:07
 * @Version: 1.0
 */

@Service("faAssetsTransferOutItemService")
public class FaAssetsTransferOutItemService extends DomainService {

    @Autowired
    private FaAssetsTransferOutItemRepository faAssetsTransferOutItemRepository;

    /**
     * 根据卡片id查全部
     */
    public List<FaAssetsTransferOutItem> find(SimpleRequest request){

        String id = request.get("id");
        List<FaAssetsTransferOutItem> faAssetsTransferOutItems = faAssetsTransferOutItemRepository.findCard(id);
        return faAssetsTransferOutItems;

    }

}
